package com.zut.dao;

import com.github.pagehelper.Page;
import com.zut.pojo.Business;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 张晨
 * @date 2024/9/10 16:50
 * @desc
 */

public interface BusinessDao {
    Integer insertBusiness(Business business);

    @Select("select * from business where account = #{account} and password = #{password}")
    Business selectAccountAndPassword(@Param("account") String account, @Param("password") String password);

    Page<Business> selectByContactAndTelephone(Business business);

    @Delete("delete from business where id=#{id}")
    Integer deleteById(int i);

    Integer updateById(Business business);
}
